//
// Created by Lenovo on 2021/5/11.
//

#ifndef TSP_CITY_H
#define TSP_CITY_H
#include <cstring>
#include <iostream>
#include <algorithm>
const int inf = 1e9+10;
class City
{
public:
    City(int up = inf,int dowm = inf,int num = 0){
        up_weight = up;
        down_weiht = dowm;
        city_num = num;
    };
    void inputcity_num(){
        std::cout<<"citynum"<<'\n';
        std::cin>>city_num;
    }
    int getcity_num(){
        return city_num;
    }
    int get_upweight(){
        return up_weight;
    }
    void updata(int lb,int nl)
    {
        if(lb+nl<=up_weight+down_weiht){
            up_weight = nl;
            down_weiht = lb;
        }
    }
private:
    int up_weight;
    int down_weiht;
    int city_num;
};

#endif //TSP_CITY_H
